using System;
using NBModular.Lib.Data.Abstractions.Attributes;
using NBModular.Lib.Data.Core.Entities.Extend;

namespace NBModular.Module.Member.Domain.UserAddress
{
    /// <summary>
    /// 用户地址表
    /// </summary>
    [Table("User_Address")]
    public partial class UserAddressEntity : EntityBaseWithSoftDelete
    {
        /// <summary>
        /// 收货人名称
        /// </summary>
        [Length(100)]
        public string UserName { get; set; }

        /// <summary>
        /// 收货人手机
        /// </summary>
        [Length(20)]
        public string UserPhone { get; set; }

        /// <summary>
        /// 区域id路径
        /// </summary>
        [Length(255)]
        public string AreaIdPath { get; set; }

        /// <summary>
        /// 最后一级区域id
        /// </summary>
        [Length(100)]
        public string AreaId { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        [Length(255)]
        public string UserAddress { get; set; }

        /// <summary>
        /// 是否默认地址
        /// </summary>
        public bool IsDefault { get; set; }

    }
}
